using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetHDHeadImgRequest : GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetHDHeadImgRequest result;
			protected override GetHDHeadImgRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetHDHeadImgRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetHDHeadImgRequest DefaultInstanceForType
			{
				get
				{
					return GetHDHeadImgRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint ImgWidth
			{
				get
				{
					return this.result.ImgWidth;
				}
				set
				{
					this.SetImgWidth(value);
				}
			}
			public uint ImgHeight
			{
				get
				{
					return this.result.ImgHeight;
				}
				set
				{
					this.SetImgHeight(value);
				}
			}
			public string ImgFormat
			{
				get
				{
					return this.result.ImgFormat;
				}
				set
				{
					this.SetImgFormat(value);
				}
			}
			public uint TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public uint StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public uint HeadImgType
			{
				get
				{
					return this.result.HeadImgType;
				}
				set
				{
					this.SetHeadImgType(value);
				}
			}
			public Builder()
			{
				this.result = GetHDHeadImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetHDHeadImgRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetHDHeadImgRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetHDHeadImgRequest other = this.result;
					this.result = new GetHDHeadImgRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetHDHeadImgRequest.Builder Clear()
			{
				this.result = GetHDHeadImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetHDHeadImgRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetHDHeadImgRequest.Builder(this.result);
				}
				return new GetHDHeadImgRequest.Builder().MergeFrom(this.result);
			}
			public override GetHDHeadImgRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetHDHeadImgRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetHDHeadImgRequest)
				{
					return this.MergeFrom((GetHDHeadImgRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetHDHeadImgRequest.Builder MergeFrom(GetHDHeadImgRequest other)
			{
				return this;
			}
			public override GetHDHeadImgRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetHDHeadImgRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetHDHeadImgRequest._getHDHeadImgRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetHDHeadImgRequest._getHDHeadImgRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasUserName = input.ReadString(ref this.result.userName_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasImgWidth = input.ReadUInt32(ref this.result.imgWidth_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 32u)
							{
								this.result.hasImgHeight = input.ReadUInt32(ref this.result.imgHeight_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasImgFormat = input.ReadString(ref this.result.imgFormat_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasHeadImgType = input.ReadUInt32(ref this.result.headImgType_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetHDHeadImgRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetHDHeadImgRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public GetHDHeadImgRequest.Builder SetImgWidth(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgWidth = true;
				this.result.imgWidth_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearImgWidth()
			{
				this.PrepareBuilder();
				this.result.hasImgWidth = false;
				this.result.imgWidth_ = 0u;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetImgHeight(uint value)
			{
				this.PrepareBuilder();
				this.result.hasImgHeight = true;
				this.result.imgHeight_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearImgHeight()
			{
				this.PrepareBuilder();
				this.result.hasImgHeight = false;
				this.result.imgHeight_ = 0u;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetImgFormat(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgFormat = true;
				this.result.imgFormat_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearImgFormat()
			{
				this.PrepareBuilder();
				this.result.hasImgFormat = false;
				this.result.imgFormat_ = "";
				return this;
			}
			public GetHDHeadImgRequest.Builder SetTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0u;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0u;
				return this;
			}
			public GetHDHeadImgRequest.Builder SetHeadImgType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasHeadImgType = true;
				this.result.headImgType_ = value;
				return this;
			}
			public GetHDHeadImgRequest.Builder ClearHeadImgType()
			{
				this.PrepareBuilder();
				this.result.hasHeadImgType = false;
				this.result.headImgType_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UserNameFieldNumber = 2;
		public const int ImgWidthFieldNumber = 3;
		public const int ImgHeightFieldNumber = 4;
		public const int ImgFormatFieldNumber = 5;
		public const int TotalLenFieldNumber = 6;
		public const int StartPosFieldNumber = 7;
		public const int HeadImgTypeFieldNumber = 8;
		private static readonly GetHDHeadImgRequest defaultInstance;
		private static readonly string[] _getHDHeadImgRequestFieldNames;
		private static readonly uint[] _getHDHeadImgRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasImgWidth;
		private uint imgWidth_;
		private bool hasImgHeight;
		private uint imgHeight_;
		private bool hasImgFormat;
		private string imgFormat_ = "";
		private bool hasTotalLen;
		private uint totalLen_;
		private bool hasStartPos;
		private uint startPos_;
		private bool hasHeadImgType;
		private uint headImgType_;
		private int memoizedSerializedSize = -1;
		public static GetHDHeadImgRequest DefaultInstance
		{
			get
			{
				return GetHDHeadImgRequest.defaultInstance;
			}
		}
		public override GetHDHeadImgRequest DefaultInstanceForType
		{
			get
			{
				return GetHDHeadImgRequest.DefaultInstance;
			}
		}
		protected override GetHDHeadImgRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public uint ImgWidth
		{
			get
			{
				return this.imgWidth_;
			}
		}
		public uint ImgHeight
		{
			get
			{
				return this.imgHeight_;
			}
		}
		public string ImgFormat
		{
			get
			{
				return this.imgFormat_;
			}
		}
		public uint TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public uint StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public uint HeadImgType
		{
			get
			{
				return this.headImgType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasImgWidth && this.hasImgHeight && this.hasTotalLen && this.hasStartPos && this.hasHeadImgType && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.UserName);
				}
				if (this.hasImgWidth)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ImgWidth);
				}
				if (this.hasImgHeight)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.ImgHeight);
				}
				if (this.hasImgFormat)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.ImgFormat);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.TotalLen);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.StartPos);
				}
				if (this.hasHeadImgType)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.HeadImgType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetHDHeadImgRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getHDHeadImgRequestFieldNames = GetHDHeadImgRequest._getHDHeadImgRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getHDHeadImgRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasUserName)
			{
				output.WriteString(2, getHDHeadImgRequestFieldNames[7], this.UserName);
			}
			if (this.hasImgWidth)
			{
				output.WriteUInt32(3, getHDHeadImgRequestFieldNames[4], this.ImgWidth);
			}
			if (this.hasImgHeight)
			{
				output.WriteUInt32(4, getHDHeadImgRequestFieldNames[3], this.ImgHeight);
			}
			if (this.hasImgFormat)
			{
				output.WriteString(5, getHDHeadImgRequestFieldNames[2], this.ImgFormat);
			}
			if (this.hasTotalLen)
			{
				output.WriteUInt32(6, getHDHeadImgRequestFieldNames[6], this.TotalLen);
			}
			if (this.hasStartPos)
			{
				output.WriteUInt32(7, getHDHeadImgRequestFieldNames[5], this.StartPos);
			}
			if (this.hasHeadImgType)
			{
				output.WriteUInt32(8, getHDHeadImgRequestFieldNames[1], this.HeadImgType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasImgWidth)
			{
				num ^= this.imgWidth_.GetHashCode();
			}
			if (this.hasImgHeight)
			{
				num ^= this.imgHeight_.GetHashCode();
			}
			if (this.hasImgFormat)
			{
				num ^= this.imgFormat_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasHeadImgType)
			{
				num ^= this.headImgType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetHDHeadImgRequest getHDHeadImgRequest = object_0 as GetHDHeadImgRequest;
			return getHDHeadImgRequest != null && (this.hasBaseRequest == getHDHeadImgRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getHDHeadImgRequest.baseRequest_))) && (this.hasUserName == getHDHeadImgRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(getHDHeadImgRequest.userName_))) && (this.hasImgWidth == getHDHeadImgRequest.hasImgWidth && (!this.hasImgWidth || this.imgWidth_.Equals(getHDHeadImgRequest.imgWidth_))) && (this.hasImgHeight == getHDHeadImgRequest.hasImgHeight && (!this.hasImgHeight || this.imgHeight_.Equals(getHDHeadImgRequest.imgHeight_))) && (this.hasImgFormat == getHDHeadImgRequest.hasImgFormat && (!this.hasImgFormat || this.imgFormat_.Equals(getHDHeadImgRequest.imgFormat_))) && (this.hasTotalLen == getHDHeadImgRequest.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(getHDHeadImgRequest.totalLen_))) && (this.hasStartPos == getHDHeadImgRequest.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(getHDHeadImgRequest.startPos_))) && (this.hasHeadImgType == getHDHeadImgRequest.hasHeadImgType && (!this.hasHeadImgType || this.headImgType_.Equals(getHDHeadImgRequest.headImgType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("ImgWidth", this.hasImgWidth, this.imgWidth_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("ImgHeight", this.hasImgHeight, this.imgHeight_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("ImgFormat", this.hasImgFormat, this.imgFormat_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<GetHDHeadImgRequest, GetHDHeadImgRequest.Builder>.PrintField("HeadImgType", this.hasHeadImgType, this.headImgType_, writer);
		}
		public static GetHDHeadImgRequest ParseFrom(byte[] data)
		{
			return GetHDHeadImgRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetHDHeadImgRequest MakeReadOnly()
		{
			return this;
		}
		public static GetHDHeadImgRequest.Builder CreateBuilder()
		{
			return new GetHDHeadImgRequest.Builder();
		}
		public override GetHDHeadImgRequest.Builder ToBuilder()
		{
			return GetHDHeadImgRequest.CreateBuilder(this);
		}
		public override GetHDHeadImgRequest.Builder CreateBuilderForType()
		{
			return new GetHDHeadImgRequest.Builder();
		}
		public static GetHDHeadImgRequest.Builder CreateBuilder(GetHDHeadImgRequest prototype)
		{
			return new GetHDHeadImgRequest.Builder(prototype);
		}
		static GetHDHeadImgRequest()
		{
			GetHDHeadImgRequest.defaultInstance = new GetHDHeadImgRequest().MakeReadOnly();
			GetHDHeadImgRequest._getHDHeadImgRequestFieldNames = new string[]
			{
				"BaseRequest",
				"HeadImgType",
				"ImgFormat",
				"ImgHeight",
				"ImgWidth",
				"StartPos",
				"TotalLen",
				"UserName"
			};
			GetHDHeadImgRequest._getHDHeadImgRequestFieldTags = new uint[]
			{
				10u,
				64u,
				42u,
				32u,
				24u,
				56u,
				48u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.GetHDHeadImgRequest.Descriptor, null);
		}
	}
}
